﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MaguenBrokersMVC.Models
{
    public class SeguroArt
    {
        [ScaffoldColumn(false)]
        public virtual int Id { get; set; }

        [Required(ErrorMessage = "*")]
        public virtual string Nombre { get; set; }

        [Required(ErrorMessage = "*")]
        public virtual string Apellido { get; set; }

        [Required(ErrorMessage = "*")]
        [RegularExpression(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Ingrese un email válido por favor.")]
        [DataType(DataType.EmailAddress)]
        public virtual string Email { get; set; }

        [Required(ErrorMessage = "*")]
        public virtual long CUIT { get; set; }

        [Required(ErrorMessage = "*")]
        public virtual long CIIU { get; set; }

        [DisplayName("C. de Empleados")]
        [Required(ErrorMessage = "*")]
        public virtual int CantidadEmpleados { get; set; }

        [DisplayName("Masa Salarial")]
        [Required(ErrorMessage = "*")]
        public virtual decimal MasaSalarial { get; set; }


    }
}